import type { App } from 'vue'
import sTable from '../components/table/table.vue'
import sSelect from '../components/select.vue'
import footerBreadcrumb from '../components/footer.vue'
import headerBar from '../components/header.vue'
import sIcon from '../components/icon.vue'
import sSupen from '../components/supen.vue'

const list: {
    [key: string]: any
} = {
    sTable,
    sSelect,
    footerBreadcrumb,
    headerBar,
    sIcon,
    sSupen
}

export default {
    install(Vue: App) {
        Object.keys(list).forEach((key: string) => {
            //注册为全局组件
            Vue.component(key, list[key as string]);
        })
    }
}
